﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Linq.Expressions;

namespace Htse.Blue.Helpers
{
	public abstract class DataGridDeleteColumnBase<T>
	{
		public string Text { get; protected set; }

		public string Action { get; protected set; }

		public string Controller { get; protected set; }

		public Expression<Func<T, string>> Key { get; protected set; }

		public int? Width { get; protected set; }

		public DataGridDeleteColumnBase(
			string text,
			string action,
			string controller,
			Expression<Func<T, string>> key,
			int? width)
		{
			Text = text;
			Action = action;
			Controller = controller;
			Key = key;
			Width = width;
		}

		public DataGridDeleteColumnBase(
			string text,
			string action,
			string controller,
			Expression<Func<T, string>> key)
			: this(text, action, controller, key, null)
		{

		}
	}
}
